package org.lost.design.factory;

import org.lost.design.factory.abstracts.PizzaIngredientFactory;

public class ClamPizza extends Pizza {
    
    PizzaIngredientFactory ingredientFactory;
    
    public ClamPizza(PizzaIngredientFactory ingredientFactory) {
        this.ingredientFactory = ingredientFactory;
    }
    
    @Override
    public void prepare() {
        dough = ingredientFactory.CreateDough();
        sauce = ingredientFactory.createSauce();
    }
    
    @Override
    public String getName() {
        return "ClamPizza";
    }
    
    @Override
    public String box() {
        return "ClamPizza box";
    }
    
}
